<?php
die("test");
if (isset($_POST['i'])) {
	$data=$_POST['i'];
	$filteredData=substr($data, strpos($data, ",")+1);
	$decodedData=base64_decode($filteredData);
	$fp = fopen('/dev/null', 'wb');
	fwrite($fp, $decodedData);
	fclose($fp);
	echo "Upload successful\n";
} else {
	echo "No uploaded data\n";
}
?>